import serve from "koa-static";
import path from "path";
import { fileURLToPath } from 'url';

const fileUrl = import.meta.url;
const filePath = fileURLToPath(fileUrl);
const __dirname = path.dirname(filePath);
console.log(__dirname);
const staticPath = path.join(__dirname, './../../', './public');
console.log(staticPath);
export default () => serve(staticPath);
